#!/bin/bash

# Data backup script
BACKUP_DIR="/home/data/database/backups"
TIMESTAMP=$(date +%Y%m%d_%H%M%S)

mkdir -p $BACKUP_DIR

echo "Starting database data backup..."

# Backup all data directories
tar -czf $BACKUP_DIR/database_backup_$TIMESTAMP.tar.gz /home/data/database/*

echo "Data backup completed: $BACKUP_DIR/database_backup_$TIMESTAMP.tar.gz"